/**
 *
 */
package com.naiterui.ehp.bs.doctor.repository;

import java.util.Collection;
import java.util.Date;
import java.util.List;

import org.springframework.stereotype.Repository;

import com.naiterui.common.repository.core.BaseJpaRepository;
import com.naiterui.ehp.bp.domain.Doctor;

/**
 * @Description 概述
 */
@Repository
public interface IDoctorRepository extends BaseJpaRepository<Doctor, Long> {

    List<Doctor> findByPhone(String phone);

    List<Doctor> findByUserId(Long userId);

    List<Doctor> findByUserIdIn(Collection<Long> userIds);

    List<Doctor> findByIdIn(Collection<Long> doctorIds);

    List<Doctor> findByIdInAndType(Collection<Long> doctorIds, Integer Type);

    List<Doctor> findByStatusAndChangedAtBetween(Integer status, Date start, Date end);

    Doctor findFirstByPhone(String phone);
}
